$('.right-titleicon').on("click",function(e){
	projectVM.showMenulist()
})
let that;
projectVM = new Vue({
	el: "#content",
	data: {
		disabled:true,
		showSelect:false,
		menuList:[
			{name:'投入',path:'goIn.html'},{name:'退出',path:'goOut.html'},{name:'列表',path:'index.html'},
		],
		typeList:[{name:'变压器1'},{name:'变压器2'},{name:'变压器3'},{name:'变压器4'},],
		showSubmit:false,
		onStatus:'',
		selectText:'变压器1',
		result:'',
		showMenu:false,
		showMorebtn:false,
		advance:'',
		showAdd:false,
		show_popup:false,
		OperateStaff:"",//操作人
		TutelageStaff:"",//监护人
		listin:[],
		fileList:[],
		listout:[],
		currentIndex:1,
	},
	created: function() {
		that = this;
		//hu获取页面必要的参数
		let config = mui.neioConfig.getNeioConfig();
		let key = config.KEYS.PARTS;
		let data = mui.neioConfig.getStorage(key);
		let dataJson = JSON.parse(data)
		console.log("元器件："+data)
		that.getInDetail(dataJson)
	},
	methods: {
		//获取投入详情
		getInDetail(data){
			let config = mui.neioConfig.getNeioConfig();
			let url = config.URL.getWorkOrderIdByPage
			let params = {}
			params.workOrderId = data.workOrderId;
			params.ticketId = data.ticketId;
			params.current = that.currentIndex;
			params.pageSize = '1000';
			
			
			mui.neiosRequst.httpRequst(url,params,function(ret){
				console.log("元器件成功回掉："+JSON.stringify(ret))
				if(ret.code == 0){
					that.listin = ret.data.records;
				}
			},function(err){
				console.log("失败回掉："+JSON.stringify(err))
			})
		},
		//选择变压器类型
		chooseType(e){
			console.log(e,'===')
		},
		//返回上一页
		goBack(){
			mui.back()
		},
		//更多按钮
		showMore(){
			this.showMorebtn ? this.showMorebtn = false : this.showMorebtn = true
		},
		//阻止事件冒泡
		clickStop(){

		},
		//选择是否为值班人
		checkOnstatus(){
			console.log(this.onStatus)
			this.onStatus ? this.onStatus = false : this.onStatus =true
			
		},
		//点击菜单
		menuClick(e){
			if(e.name == '我值班'){
				this.onStatus? this.onStatus= false : this.onStatus=true
			}else{
				this.navTo(e.path)
			}
		},
		//左上角菜单显示隐藏
		showMenulist(){
			this.showMenu?this.showMenu=false:this.showMenu=true
		},
		navTo(e){
			mui.openWindow({
				url: e,
				id: e,
				extras: {},
			waiting: {
				autoShow: false
			}
			});
		},
	},
	
	})